export default class Modal {
	//提示弹框
	toast(msg) {
		uni.showToast({
			icon: "none",
			title: msg
		})
	}
	
	//提示确认
	confirm(title, content) {
		return new Promise(function(resolve, reject) {
			uni.showModal({
				title: title,
				content: content,
				success: function(res) {
					resolve(res.confirm)
				}
			})
		})
	}
}
